package cn.bdqn.first;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Description TODO
 * @Date 2020/2/13 11:07
 * @Created by 张三三
 */

public class Pen {
    private String brand;

    private double price;

    public Pen() {}

    public Pen(String brand, double price) {
        this.brand = brand;
        this.price = price;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Pen{" +
                "brand='" + brand + '\'' +
                ", price=" + price +
                '}';
    }
}
